package com.itheima.ssm.service;

import com.itheima.ssm.domain.Role;
import com.itheima.ssm.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService extends UserDetailsService {
    List<UserInfo> findAll()throws Exception;

    void save(UserInfo info)throws Exception;

    UserInfo findById(int id)throws Exception;

    List<Role> findOtherRoles(int id)throws Exception;

    void addRoleToUser(int userId, int[] roleIds)throws Exception;
}
